﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Lecturer>" %>
<%@ Import Namespace="ViewRes" %>
<%
    using (Html.BeginRouteForm("Default", new {controller = "Lecturers", action = "Edit"}))
    {%>
<%:Html.HiddenFor(s => s.UserId)%>
<div id="divAccordion">
    <h3>
        <a href="#">
            <%:AdministratorsStrings.LectInform%>
        </a>
    </h3>
    <div>
        <span>
            <%
        Html.RenderPartial("~/Views/Administrators/Users/UserEditControl.ascx", Model);%>
        </span><span> <%:AdministratorsStrings.Degree%>
            <%:Html.TextBoxFor(model => model.Rank)%>
        </span>
    </div>
    <h3>
        <a href="#">
           <%:AdministratorsStrings.LecturerLoad%>
        </a>
    </h3>
     <div>
        <input type="button" value="Импортировать из файла Excel" />
        <br />
        <table>
            <%
        foreach (LecturersLoading loading in Model.StudentsLoading)
        {%>
                <%
            Html.RenderPartial("~/Views/Administrators/Lecturers/LectureLoadingEditControl.ascx", loading);%>
            <%
        }%>         
        </table>
    </div>
</div>
<div style="float: right">
    <input type="submit" value="OK" />
</div>
<%
    }%>